//
//  CSBONabviSweeping.swift
//  CurSodoboAer
//
//  Created by CurSodoboAer on 2024/11/5.
//

import UIKit

class CSBONabviSweeping: UINavigationController{
    var csbColoter:UIColor = .brown
    var csbFplowe:CGFloat = 23.1
    
    var csbHeihei:UIFont?
    
    
    
    override func viewDidLoad() {
        super.viewDidLoad()
        self.navigationBar.isHidden = true
        
        
        if csbColoter == UIColor.black {
            csbHeihei = UIFont.systemFont(ofSize: csbFplowe)
            self.view.backgroundColor = csbColoter
        }else{
            csbHeihei = UIFont.systemFont(ofSize: csbFplowe + 1)
        }
        guard csbHeihei != nil else { return  }
        
        if self.view.backgroundColor == csbColoter {
            let qurk = UIButton(configuration: UIButton.Configuration.plain())
            qurk.isHidden = true
            qurk.isEnabled = false
            view.addSubview(qurk)
        }
        
        
        
        
    }
    
    override func pushViewController(_ viewController: UIViewController, animated: Bool) {
        var ikol = ["csbFplowe":csbFplowe]
        if self.view.backgroundColor == csbColoter {
            ikol["allElseTigerCSB"]  = 77.8
            csbFplowe += 1.1
        }else{
            csbFplowe += 2.1
        }
        
        

        if children.count > 0  && !viewController.isMember(of:CSBComeenrSweeping.self) {
            ikol.removeValue(forKey: "allTigerCSB")
            
            viewController.hidesBottomBarWhenPushed = true
        }else{
            ikol["children"] = csbFplowe
        }
        super.pushViewController(viewController, animated: false)
    }
}


class CSBComeenrSweeping: UIViewController {
    
}
